nikita-leonov / particleio-homekit Goto Github PK
View Code? Open in Web Editor NEWExperiment to show how to glue together Particle.io and HomeKit through HomeBridge server.
License: MIT License
Experiment to show how to glue together Particle.io and HomeKit through HomeBridge server.
License: MIT License
okay so here is the commands i need to commit on or off using curl for my living room lamp however i changed my access token so it wont work for everyone to see i changed one digit to break it if i can get this figured out then the homebridge-http is all i need !
however in config.json there is a on_body and an off_body and thats where i am stuck as you can see ... the homebridge fires up and siri works also my appletv saw the homebridge and made it available on and off of wifi which is great news in itself... can you help me out with the on_body and off_body please ! i have tried everything i can think off for 2 days !
This is the curl command i use turn on my lamp: โ
curl https://api.particle.io/v1/devices/53ff6d066667574813461267/digitalwrite?access_token=7458609c672644bb8d29780fbe60a71f3ce26293 -d params=D2,HIGH
this is the curl command i use to turn off my lamp
curl https://api.particle.io/v1/devices/53ff6d066667574813461267/digitalwrite?access_token=7458609c672644bb8d29780fbe60a71f3ce26293 -d params=D2,LOW
this is just part of the accessories section of my config.json
accessories": [
{
"accessory": "Http",
"name": "Kitchen Lamp",
"on_url": "https://api.particle.io/v1/devices/53ff6$
"on_body": "{"D2, HIGH"}",
"off_url": "https://api.particle.io/v1/devices/53ff$
"off_body": "{"D2, LOW"}",
"brightness_url": "https://192.168.1.22:3030/device$
"username": "",
"password": "",
"sendimmediately": "",
Incomplete if statements.
Deprecated references.
Incorrect result variable cast.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.