Skip to content

Homebridge platform that supports Thingspeak's last entry value.

License

Notifications You must be signed in to change notification settings

civita/homebridge-ts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-thingspeak

Homebridge platform that supports Thingspeak's last entry value.

For details of Homebridge visit: https://github.com/nfarina/homebridge

This plugin provides a Homebridge accessory. Based on HttpMultisensor.

Installation

  1. Install homebridge using: sudo npm install -g homebridge
  2. Install this plugin using: sudo npm install -g homebridge-thingspeak
  3. Update your configuration file. See sample-config.json in this repository for a sample.
  4. Start Homebridge: homebridge

Configuration

Accessory configuration sample (part of ~/.homebridge/config.json):

"accessories": [
               {
               "accessory": "Httpthingspeak",
               "name": "Temperature",
               "type": "CurrentTemperature",
               "manufacturer" : "SensorManu 1",
               "model": "SensorModel 1",
               "serial": "SensorSerial 1",
               "url": "https://api.thingspeak.com/channels/num_of_channel/field/1/last.json",
               "http_method": "GET",
               "debug": true
               }
]

The Thingspeak url should return a json string looks like this:

{
	"{"created_at":"2017-12-23T16:30:53Z","entry_id":16113,"field1":"7.2"}"
}

Please see sample-config.json for configuration options.

This plugin acts as an interface between Thingspeak and Homebridge.

License

Apache-2.0 License, see License file.

Author

(C) tamasharasztosi, 2017

About

Homebridge platform that supports Thingspeak's last entry value.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%