Skip to content

mhor/arduino-station

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Station

Summary

A simple Arduino project driven by johnny-five, to print some usefull information on LCD screen.

Result

ArduinoStationSchema ArduinoStationSchema

Schema

ArduinoStationSchema

Fritzing diagram: arduino-station.fzz

3D Printable Case

You can find STL files here

Installation

Install Firmata on your Arduino Then:

$ git clone [email protected]:mhor/arduino-station.git
$ npm install
$ node app.js

Plugins:

Global Plugins configuration:

  • type: step type
  • enabled: enabled step
  • duration: duration of step

Datetime:

{
    "type": "datetime",
    "enabled": true,
    "duration": 5000,
    "format": {
        "date": "LLLL",
        "time": "llll"
    }
}
  • format.date: Moment.js format of first line
  • format.time: Moment.js format of second line

Wheather:

{
    "type": "weather",
    "enabled": true,
    "duration": 5000,
    "city": "Paris",
    "lat": 48.8534100,
    "long": 2.3488000
}
  • city: This text will be print on first line
  • lat: Latitude needed
  • long: Longitude needed

LastFM last played track

{
    "type": "lastfm-last-played-track",
    "enabled": true,
    "duration": 5000,
    "username": "mhor_"
}
  • username: username of LastFM account

LastFM current track

{
    "type": "lastfm-current-track",
    "enabled": true,
    "duration": 5000,
    "username": "mhor_"
}
  • username: username of LastFM account

LastFM total playcount

{
    "type": "lastfm-total-playcount",
    "enabled": true,
    "duration": 5000,
    "username": "mhor_"
}
  • username: username of LastFM account

LastFM today playcount

{
    "type": "lastfm-today-playcount",
    "enabled": true,
    "duration": 5000,
    "username": "mhor_"
}
  • username: username of LastFM account

Other Configuration:

{
	"arduino": {
		"controller": "PCF8574",
		"rows": 2,
		"cols": 16
	},
	"lastfm": {
		"key": "d41d8cd98f00b204e9800998ecf8427e"
	},
	"darksky": {
		"key": "d41d8cd98f00b204e9800998ecf8427e"
	}
}
  • arduino: your arduino lcd configuration passed on LCD construction
  • lastfm.key: Your LastFM key
  • darksky.key: Your Darksky key

See full example configuration here

License

See LICENSE for more information