Hello, I am in the process of adding I2C support for OS and cannot figure out how to add the option of I2C to the Station Types. I suspect is part of the stns.dat file but how do I edit it? I see there are writes and reads of the file but nothing regarding the Station Types.
I am adding support for MCP23017. So the communication will be done through the I2C pins (GPIO2/SDA and GPIO3/SCL). MCP23017 will directly control 16 stations. I have the firmware changes implemented but now in the user interface I need to add the option to set each station to I2C. Right now the options are Standard, RF, Remote, GPIO and HTTP. So since I am not using the actual GPIOs of the RaspberryPI I need to add another I2C choice to the list.
I think I found where the Station Types are defined. Is in the JS file https://ui.opensprinkler.com/js/app.js but looks like is hosted remotely. Would it be possible to host it locally while I’m testing the changes?
Are you trying to do this for ESP8266 or Rasbperry Pi? OpenSprinkler 3.x which is based on ESP8266, already support PCA9555/PCA9535, which is an I2C expander similar to MCP23017 but cheaper.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.