Menturan / MMM-OpeningHours

Magic Mirror module that displays places opening hours.
GNU General Public License v3.0
12 stars 3 forks source link

Provide own list of places #1

Open Menturan opened 5 years ago

Menturan commented 5 years ago

I would be nice if you could use this module without having to go through Google Places API.

In the config, provide a list of places. The esiest would be to mimic the Places API response.

confg: {
ownProvidedPlaces: [{
"name": "My Place",
    "opening_hours": {
      "open_now": false,
      "periods": [
        {
          "close": {
            "day": 0,
            "time": "2200"
          },
          "open": {
            "day": 0,
            "time": "0800"
          }
        },
    ]
 }
}]
}