Giter Club home page Giter Club logo

Comments (13)

tehmilcho avatar tehmilcho commented on July 20, 2024

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.

tehmilcho avatar tehmilcho commented on July 20, 2024

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:

  1. if you had only ready used the Adapter: stop the instance and delete the folder “devices” under “Pimatic.0”
  2. replace the “main.js” under “opt/iobroker/node_modules/iobroker.pimatic” and start the Instance

main.zip

from iobroker.pimatic.

Apollon77 avatar Apollon77 commented on July 20, 2024

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.

tehmilcho avatar tehmilcho commented on July 20, 2024

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.

Apollon77 avatar Apollon77 commented on July 20, 2024

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.

tehmilcho avatar tehmilcho commented on July 20, 2024

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.

Apollon77 avatar Apollon77 commented on July 20, 2024

No problem. We can edit that out ;-)

from iobroker.pimatic.

tehmilcho avatar tehmilcho commented on July 20, 2024

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.

Apollon77 avatar Apollon77 commented on July 20, 2024

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.

tehmilcho avatar tehmilcho commented on July 20, 2024

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.

Apollon77 avatar Apollon77 commented on July 20, 2024

iobroker - settings "Repository" (Verwahrungsort) set to "latest". Then in Admin at Adapter the Reload button

from iobroker.pimatic.

tehmilcho avatar tehmilcho commented on July 20, 2024

I think it is already... From other adapters i get updates

Screenshot_20200320_002847_com android chrome
Screenshot_20200320_002830_com android chrome

from iobroker.pimatic.

tehmilcho avatar tehmilcho commented on July 20, 2024

Got it

from iobroker.pimatic.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.