Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SteelSeries-Gauges / Mysql #37

Open
ozzylamberth opened this issue Apr 1, 2022 · 1 comment
Open

SteelSeries-Gauges / Mysql #37

ozzylamberth opened this issue Apr 1, 2022 · 1 comment

Comments

@ozzylamberth
Copy link

What do you recommend to show a data generated every 15 seconds in my database hosted on a remote server, specifically in the following component or if you have any ideas that can guide me

function init() {
    // Initialzing gauge

	var sections = [steelseries.Section(0, 70, 'rgba(255, 0, 0, 1.0)'),
             steelseries.Section(70, 95, 'rgba(255, 255, 0, 1.0)'),
              steelseries.Section(95, 100, 'rgba(0, 255, 0, 1.0)') ];

    single1 = new steelseries.DisplaySingle('canvasSingle1', {
                        width: 120,
                        height: 50,
		    section: sections
                        })
@ozzylamberth
Copy link
Author

Solution to my request

function init() {
// Initialzing gauge

var sections = [steelseries.Section(0, 70, 'rgba(255, 0, 0, 1.0)'),
         steelseries.Section(70, 95, 'rgba(255, 255, 0, 1.0)'),
          steelseries.Section(95, 100, 'rgba(0, 255, 0, 1.0)') ];

single1 = new steelseries.DisplaySingle('canvasSingle1', {
                    width: 120,
                    height: 50,
                    value:<?php echo $extraido['Parameter that I need to show from my MySQL Database']; ?>,
	    section: sections
                    })

Thanks for the directions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant