more G-Labs products

Author Topic: Alpha Numeric Display Widget  (Read 1545 times)

March 22, 2015, 03:08:07 AM
Read 1545 times

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
It is time to admit defeat and ask for help from a talented widget creator.

I have a need for an alpha numeric display style widget (see attached picture) with the following functionality:
 - Slider to switch program/function On or Off
 - Slider to select option 1/option 2 (1 of the 2 options always active)
 - Slider to select option 3/option 4 (1 of the 2 options always active)
 - 1 x 30 character display line - small text
 - 4 x 20 character display line - large text
 - each of the 5 display lines separately assigned by program parameter

Anybody willing to help?
« Last Edit: March 22, 2015, 03:12:28 AM by enterprised »
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj

April 07, 2015, 09:13:44 PM
Reply #1

snagytx

  • *
  • Information
  • Newbie
  • Posts: 3
you just need the JS and HTML code for the widget?

April 07, 2015, 09:48:15 PM
Reply #2

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
Correct.
I just need the widget code so I can use it into some other code I've been writing (Sprinkler App).

I manage to get by withthe C#, but html and JS is alien to me. Realy need to learn this one day.
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj

April 07, 2015, 09:52:56 PM
Reply #3

snagytx

  • *
  • Information
  • Newbie
  • Posts: 3
does this satisfy your taste ?  ;D

Or you want the text to be boxed/colored as in your picture? I'm not using any coloring - everything comes from theme

April 07, 2015, 10:23:07 PM
Reply #4

snagytx

  • *
  • Information
  • Newbie
  • Posts: 3
See attached the html/js code.

The JS code would need to be updated a but and replace:

WS_CALL12, WS_CALL34, WS_CALLONOFF with the right API calls - they will sent 1/2 for option1 or option2, 3/4 for option 3/4 and 0/1 for off/on.

Also replace:

PROPERTY1, PROPERTY2, PROPERTY3, PROPERTY4, PROPERTY5 for the properties that the code will be waiting for to fill in the text for lines 1-5.

not sure how to take advantage of it, never used it from a Application but something similar to this works fine for another widget that I built for a DoorLock Widget - but that one uses z-wave

April 08, 2015, 01:44:40 AM
Reply #5

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
That is fantastic.
Thanks for your help, will integrate this into the sprinkler app soon.
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj