Skip to content

Instantly share code, notes, and snippets.

View wilco's full-sized avatar

Wilco Niessen wilco

View GitHub Profile
@integrii
integrii / RaZberry API Command Examples
Last active November 22, 2022 13:03
RaZberry API ZAutomation/ZAPI Examples
# I had a LOT of trouble finding working examples of the ZAutomation API for RaZberry API. I eventually figured out what exactly to use by combining information from multiple sources and sniffing requests from the 'Expert UI'. Some areas I found information:
- http://docs.zwayhomeautomation.apiary.io/
- http://wiki.micasaverde.com/index.php/ZWave_Command_Classes
- https://www.npmjs.org/package/mqtt-zway
- The included PDFs
- The expert API area on the device web UI
- https://chrome.google.com/webstore/detail/postman-interceptor/aicmkgpgakddgnaphhhpliifpcfhicfo?hl=en (Postman POST/GET sniffer)
# Some general RaZberry API commands:
@Willianvdv
Willianvdv / exact_online_client.rb
Last active August 29, 2015 13:55
Exact api spul
require 'base64'
require 'rest_client'
class ExactOnlineClient
def xml_call topic, data=nil
if not @cookies
# Brutal login technique (as documented (-; )
url = "https://start.exactonline.nl/docs/XMLDivisions.aspx"
response = RestClient.post url, {"_UserName_" => username, "_Password_" => password}
@cookies = response.cookies