Comments (3)
I'm getting a 404/notfound error on that link. Can you send me a valid one? Thanks.
from freeboard.
Hi sorry, yes that is on a local test (not public facing/access) basically its only an api that returns the data element (json_encoded) as {"total":"40"} , or another call returns something like {"id":"1","name":"my name","total":"1") ..... which results in same error indicating that the very first : is where a missing ; before statement must be .... how must a custom plugin/ data source be defined (I have one obviously calling these apis) which used types JSON but now I define JSONP (so not sure if a datasource which worked/works with JSON can simply just change type to JSONP (or is there some changes that must be made to handle JSONP ?
Thanks
from freeboard.
Oh, I think the problem is that your JSONP file isn't really JSONP. http://en.wikipedia.org/wiki/JSONP. JSONP is actually a script file that must be formatted like javascript and calls back the function passed in the URL. So for that example above, the file would need to look like:
jQuery20302740955555920611_1401453890633({
"total": 62
});
The main thing is that the function name changes randomly so you need to make sure your API endpoint is taking this into account when it creates the JSONP file.
from freeboard.
Related Issues (20)
- How to display the bar at the bottom of the screen ?
- Rephrase "About" and README
- Call a bash script on action HOT 1
- Auto load Freeboard after system reboot HOT 1
- Remove the footer bar
- HTML Widget display overflow HOT 4
- MQTT datasource HOT 1
- Source data locally instead of going through dweet.io HOT 1
- Is it possible to change column width? HOT 1
- Display issue on IOS tablet / mobile
- ajax request doesn't work json file on freeboard HOT 2
- Newbie help, please
- Setting widget title font size
- Widget disappears from pane HOT 1
- API functions to populate a freeboard instance?
- Please help with Freeboard on Github IO HOT 3
- Access to the stored datasources?
- Freeboard website doesn't redirect to https
- Super Eagle
- opensource freeboard development DEAD? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freeboard.