Simple example? #548
-
Hi all, I'm just in the planning phase of trying to write some code on a Raspberry PI to control my lights. I was wondering if anyone has a very simple example of code that they would be willing to share. I'm not really sure how to integrate this API into an overall solution. (I'm not a web programmer, I do more backend stuff and standalone executables.) Thanks in advance for any and all help! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Did you try the example scripts in the README? |
Beta Was this translation helpful? Give feedback.
-
My problem is that I'm not sure what "extra" I need to combine with the scripts to get them to work. I know probably an HTML page to embed the JS into but any specifics I need to include in the HTML etc. I know, a VERY basic question. Sorry! |
Beta Was this translation helpful? Give feedback.
-
Ah I see the confusion. This is not a browser library, there is no HTML. This runs on |
Beta Was this translation helpful? Give feedback.
-
Duh on my part! Thanks tons for the push in the right direction! |
Beta Was this translation helpful? Give feedback.
Ah I see the confusion. This is not a browser library, there is no HTML. This runs on
nodejs
, a console based JS engine.