Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. English
  3. Visualization
  4. VIS formula in Object ID SOLVED

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.5k

VIS formula in Object ID SOLVED

Scheduled Pinned Locked Moved Visualization
vis
4 Posts 3 Posters 2.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ap2017
    wrote on last edited by ap2017
    #1

    I am using WeatherCustom widget, is there a way to convert temperature from Celsius to Fahrenheit, for example by using formula in Temperature ID. Something like
    (ObjectID *9/5)+32

    ![6b39a171-bae5-4d64-9c66-9103fb6a7a71-image.png]
    (/assets/uploads/files/1585194027712-6b39a171-bae5-4d64-9c66-9103fb6a7a71-image.png)

    Apparently, this feature works only for widgets with HTML property. It will be great to clarify it in VIS Wiki

    CrunkFXC 1 Reply Last reply
    0
    • A ap2017

      I am using WeatherCustom widget, is there a way to convert temperature from Celsius to Fahrenheit, for example by using formula in Temperature ID. Something like
      (ObjectID *9/5)+32

      ![6b39a171-bae5-4d64-9c66-9103fb6a7a71-image.png]
      (/assets/uploads/files/1585194027712-6b39a171-bae5-4d64-9c66-9103fb6a7a71-image.png)

      Apparently, this feature works only for widgets with HTML property. It will be great to clarify it in VIS Wiki

      CrunkFXC Offline
      CrunkFXC Offline
      CrunkFX
      Forum Testing
      wrote on last edited by CrunkFX
      #2

      @ap2017 Install the Javascript Adapter and in Userdata.0 create a new Datapoint as Number.
      The goto Javascript and create a new "Javascript".
      Insert this and Edit for your needs:

      on({id: 'accuweather.0.Current.Temperature'/* <<< This has to be your AccuWeather Temp. No matter which one*/, change: "ne"}, function (obj) {
        setState("0_userdata.0.New_Object"/*<<<This has to be your new Datapoint*/, (getState("accuweather.0.Current.Temperature"/*<<< This has to be the same AccuWeather Temp. as above*/).val * (9 / 5) + 32), true);
      });
      

      then goto VIS and select the Object created in Userdata.0

      Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

      A 1 Reply Last reply
      2
      • CrunkFXC CrunkFX

        @ap2017 Install the Javascript Adapter and in Userdata.0 create a new Datapoint as Number.
        The goto Javascript and create a new "Javascript".
        Insert this and Edit for your needs:

        on({id: 'accuweather.0.Current.Temperature'/* <<< This has to be your AccuWeather Temp. No matter which one*/, change: "ne"}, function (obj) {
          setState("0_userdata.0.New_Object"/*<<<This has to be your new Datapoint*/, (getState("accuweather.0.Current.Temperature"/*<<< This has to be the same AccuWeather Temp. as above*/).val * (9 / 5) + 32), true);
        });
        

        then goto VIS and select the Object created in Userdata.0

        A Offline
        A Offline
        ap2017
        wrote on last edited by
        #3

        @CrunkFX Thank you. Can same be done by binding ObjectID in widget? Something like:
        {objectID;*(9);/(5);+(32);} For some reason it does not work for me.

        DutchmanD 1 Reply Last reply
        0
        • A ap2017

          @CrunkFX Thank you. Can same be done by binding ObjectID in widget? Something like:
          {objectID;*(9);/(5);+(32);} For some reason it does not work for me.

          DutchmanD Offline
          DutchmanD Offline
          Dutchman
          Developer Most Active Administrators
          wrote on last edited by Dutchman
          #4

          @ap2017 sagte in VIS formula in Object ID:

          @CrunkFX Thank you. Can same be done by binding ObjectID in widget? Something like:
          {objectID;*(9);/(5);+(32);} For some reason it does not work for me.

          Yes you can just use bindings in vis for calculations.

          “ You can use this pattern in any text, like

          My calculations with {objectID1;operation1;operation2;...} are {objectID2;operation3;operation4;...}
          or color calculations:

          #{objectRed;/(100);*(255);HEX2}{objectGreen;HEX2}{objectBlue;HEX2}
          “

          https://github.com/ioBroker/ioBroker.vis

          1 Reply Last reply
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Support us

          ioBroker
          Community Adapters
          Donate

          785

          Online

          32.5k

          Users

          81.6k

          Topics

          1.3m

          Posts
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
          ioBroker Community 2014-2025
          logo
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Home
          • Recent
          • Tags
          • Unread 0
          • Categories
          • Unreplied
          • Popular
          • GitHub
          • Docu
          • Hilfe