Small script to connect a Vestaboard with my home automation via MQTT. Can display messages, the current day or a calendar.
npm install -g @sebbo2002/vestaboard2mqtt
Configuration is expected in the file "~/.vestaboard2mqtt". An example file is in the root folder. Please stop the script before editing.
Displays a message on the board. To do this, send the content of the message to :prefix/message
.
Displays today's day of the week and the date. Can optionally be extended with the temperature and the probability of rain.
Activated with a message to :prefix/today
. The weather data can either be sent as JSON
({"temp": [16, 28], "precip": 5}
) or set individually (e.g. :prefix/today/min-temp
or
:prefix/today/precip
).
Displays the next entries for one or more selected calendars. Calendars are set in the file
beforehand. The calendar is activated with :prefix/calendar
, specifying the list of
calendars to be viewed, comma-separated.
If there are no entries for the current day, the display of Today (see above) is output.
Copyright (c) Sebastian Pekarek under the MIT license.