glitchdotcom / solari-board Goto Github PK
View Code? Open in Web Editor NEWA JavaScript solari board
License: MIT License
A JavaScript solari board
License: MIT License
Droped js, css, images and audio folders alongside the example HTML file.
Fail whale doesn't display, only the title for it.
Modify solari.js updateSolariBoard() to hard code solariData to the example JSON and everything appears to work, except the content doesn't appear.
I think this might be typo, I cannot get the light to show if I send fLight as the light parameter. But bLight works.
Is there someone who can help me how to fill the board in, i've got the html from the examples. But the board is empty and i cant fill it in :(
Basically i do not understand this line of instructons:
INSTRUCTIONS:
Hi, I'd like to point out a mistake, hopefully get a question answered, and offer contribute a php file that will deliver json to be provided as an example. I have access to php more often than python.
The error in your configuration documentation:
Your read me and wiki still contain information about editing $.post
I do have a question. I'm attempting to send json from php to the board and I am having zero luck. The board displays but get the the fail whale EVERY time.
my settings:
-index.html file in example/ based off readme,
-provider.php in example/ (this sends jsonp)
-var URL = "../example/provider.php" //this changed in solari.js (no other changes elsewhere, in this file or others)
My test of php is to call the provider.php from a browser (chrome) like so.
http://localhost/board/example/provider.php?callback=test
the response is:
test ([{"sDate":"today","sTime":"13:30","sDeparture":"[email protected]","nStatus":1,"nTrack":17,"fLight":true},{"sDate":"today","sTime":"13:30","sDeparture":"[email protected]","nStatus":1,"nTrack":17,"fLight":true},{"sDate":"today","sTime":"13:30","sDeparture":"[email protected]","nStatus":1,"nTrack":17,"fLight":true}])
The only difference is single vs. double quotes that php json_encode() function puts in. (i'm pulling in values from a multidimensional array. I used the project sample data to test.
Is there something else this that I am missing??? I just don't see what it would be unless I'm not submitting the json payload as mentioned in solari.js properly.
thank you,
Ryan
My php file is simply this. It requires php 5.2 and up
'today', 'sTime' => '13:30', 'sDeparture' => '[email protected]', 'nStatus' => 1, 'nTrack' => 17, 'fLight' => true)); array_push($data, array('sDate' => 'today', 'sTime' => '13:30', 'sDeparture' => '[email protected]', 'nStatus' => 1, 'nTrack' => 17, 'fLight' => true)); array_push($data, array('sDate' => 'today', 'sTime' => '13:30', 'sDeparture' => '[email protected]', 'nStatus' => 1, 'nTrack' => 17, 'fLight' => true)); $json = json_encode($data); header("Content-type: application/json"); //echo 'callbackname (' . $json . ')'; #test echo $_GET['callback'] . ' (' . $json . ')'; ?>Hi, I'd like to point out a mistake, hopefully get a question answered, and offer contribute a php file that will deliver json to be provided as an example. I have access to php more often than python.
The error in your configuration documentation:
Your read me and wiki still contain information about editing $.post
I do have a question. I'm attempting to send json from php to the board and I am having zero luck. The board displays but get the the fail wale EVERY time.
my settings:
-index.html file in example/ based off readme,
-provider.php in example/ (this sends jsonp)
My test of php is to call the provider.php from a browser (chrome) like so.
http://localhost/board/example/provider2.php?callback=test
the response is:
test ([{"sDate":"today","sTime":"13:30","sDeparture":"[email protected]","nStatus":1,"nTrack":17,"fLight":true},{"sDate":"today","sTime":"13:30","sDeparture":"[email protected]","nStatus":1,"nTrack":17,"fLight":true},{"sDate":"today","sTime":"13:30","sDeparture":"[email protected]","nStatus":1,"nTrack":17,"fLight":true}])
The only difference is single vs. double quotes that php json_encode() function puts in. (i'm pulling in values from a multidimensional array. I used the project sample data to test.
Is there something else this that I am missing??? I just don't see what it would be unless I'm not submitting the json payload as mentioned in solari.js properly.
thank you,
Ryan
My php file is simply this. It requires php 5.2 and up
'today', 'sTime' => '13:30', 'sDeparture' => '[email protected]', 'nStatus' => 1, 'nTrack' => 17, 'fLight' => true)); array_push($data, array("sDate" => 'today', 'sTime' => '13:30', 'sDeparture' => '[email protected]', 'nStatus' => 1, 'nTrack' => 17, 'fLight' => true)); array_push($data, array("sDate" => 'today', 'sTime' => '13:30', 'sDeparture' => '[email protected]', 'nStatus' => 1, 'nTrack' => 17, 'fLight' => true)); $json = json_encode($data); header("Content-type: application/json"); //echo 'callbackname (' . $json . ')'; #test echo $_GET['callback'] . ' (' . $json . ')'; ?>How was this made? Was it just a manual process using an image editor?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.