Comments (13)
mhh i tried myself to understand your Code and make a Mod but i think im to big Noob in JS to do that i dont understand how you geht the Data from "http:\pimaticIP:Port\api\Devices". So i also dont understand to mod it with a funktion with "http:\pimaticIP:Port\api\variables" ( "If readonly is false") =(
from iobroker.pimatic.
Hi if someboby has the same requirement, i build a mod for it.
Description:
The Mod adds self created variables (with "readonly false") from Pimatic in the Instance of the Adapter, the variables will also placed "devices" in the instance. The variables will be added without a "Channel" (Subfolder) and have the "role" - "pimatic-variable".
You can push Values over it in to pimatic (For example with "blocky" scripts etc). The varaibles will NOT receive any Updates from Pimatic because i cant figure it out how it works (maybe is not possible). If you need the Updates, just create in Pimatic a "variablesdevice" with the variable this "device" will be synct and you got all Updates from Pimatic.
Installation:
- if you had only ready used the Adapter: stop the instance and delete the folder “devices” under “Pimatic.0”
- replace the “main.js” under “opt/iobroker/node_modules/iobroker.pimatic” and start the Instance
from iobroker.pimatic.
If it works then please create a PR here!
Just use the webeditor on GitHub and insert your changes and then propose this file change.Then we can review it and release a new version
from iobroker.pimatic.
Hey sorry im a noob in js and also in github... So i dont understand what you mine... I just wanna share my mod but... I create them by just copy the existing stuff... Maybe my code is trash but it works now for me...
from iobroker.pimatic.
It’s easy ...
Here on GitHub click on the main.js file. Top right is a pencil icon. Click it. Then you can edit the content of main.js. Change there what you changed. Scroll down. There are then two fields to describe your changes. Then submit this. On next page select „create pull request“ and done. Then we can check your changes and tell you if it is trash or not ;-))
from iobroker.pimatic.
okay done.. i hope i do it right :) ...
Edit:
oooops, its seems there some changes for the Log-Output in it there just in it for my Debugging / try to understand it :)
from iobroker.pimatic.
No problem. We can edit that out ;-)
from iobroker.pimatic.
Hey @Apollon77,
I see my update wars added to the code and some other changes but in my iobroker is still only version 1.15 available. Is there something wrong?
from iobroker.pimatic.
v0..1 inclusing your cganges is available on npm and so in the ioBroker "latest" repository ... could it be that you are on stable repository
from iobroker.pimatic.
Sorry i dont get again...
The latest version is now 0.2.1
"0.2.1 (2020.03.08)
(tehmilcho) Added Variables with Readonly false to the Sync
(bluefox) Reafactoring (compact mode, ES6)"
But in my iobroker there is no update available it still says 0.1.5 is lastest. And also it says 0.1.5 is stable... What must i do to change it?
from iobroker.pimatic.
iobroker - settings "Repository" (Verwahrungsort) set to "latest". Then in Admin at Adapter the Reload button
from iobroker.pimatic.
I think it is already... From other adapters i get updates
from iobroker.pimatic.
Got it
from iobroker.pimatic.
Related Issues (19)
- uncaught exception: Cannot read property 'mapping' of undefined HOT 6
- Please add your adapter to ioBroker.discovery
- Update stable version in repo from 0.1.5 to 0.2.1
- Synchronisation of variables
- Pimatic Database is locked HOT 1
- Compatibility check and testing for Node.js 14 and 16
- remove use of adapter.tools
- Compatibility check to js-controller 4.0
- Update stable version in repo from 0.3.0 to 0.3.1
- Make adapter ready for Admin v3
- Pimatic adapter errors after migrating to controller 4.x
- Can't connect to pimatic HOT 7
- Synchronize pimatic data with iobroker
- connect Problems
- Fix testing, it is red currently
- Add Support for Compact mode (js-Controller 2.0 Feature)
- Think about to fix the issues found by adapter checker HOT 2
- Please check ioBroker.pimatic with js-controller 2.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iobroker.pimatic.