When trying to use the recipe to visualize data from my device which is registered to the IoT Foundation I am not seeing any data on the graph.
When I try and publish the following:
myData={'name' : 'RPi', 'temp' : temp, 'relh' : relh}
... I get a blank visualization
Send the data in JSON format (the visualization displays numerical data):
myData={'d': {'size': 54, 'temp': 34}}
Documentation on this format can be found here: https://docs.internetofthings.ibmcloud.com/messaging/payload.html
Related
I want to replicate the functionality of the IBM i Access Client Solutions "Printer Output" tool that is used to retrieve PDF's of spooled files from our IBM Db2 environment. Instead of a user interface, I want to replicate the functionality as an API.
I want to construct an API which takes inputs such as the filter parameters pictured below:
The output of the API would be PDF(s) of the printer output spooled files that match the parameters specified.
I figure that if I am able to access the i Access Printer Output tool, then I should be able to use my credentials to access the spool files using an API or something like that.
Where would I start in constructing something like this?
Also, are there any IBM guides that contain relevant information? I have looked but been unsuccessful. The Programmer's Toolkit is, also, not available with my version of i Access.
Also, I don't have developer roles, so if this is possible, it would need to be something that I can do with little authority within the IBM i servers and the Access client.
First off, IBM ACS is Java based. Thus everything it does can be found in the IBM Toolbox for Java, aka JTOpen aka JT400.
http://jt400.sourceforge.net/
Documentation https://www.ibm.com/docs/en/i/7.4?topic=java-toolbox
You're going to want to look at the reading a transformed spool file example
The transformation actually happens on the IBM i side, by specifying the appropriate workstation customization object, QCTXPDF in this case rather than the examples original QWPTIFFG4
// The following examples demonstrate how to set up a PrintParameterList to
// obtain different transformations when reading spooled file data. In the code
// segments that follow, assume a spooled file already exists on a server, and
// the createSpooledFile() method creates an instance of the SpooledFile class
// representing the spooled file.
// Create a spooled file
SpooledFile splF = createSpooledFile();
// Set up print parameter list
PrintParameterList printParms = new PrintParameterList();
printParms.setParameter(PrintObject.ATTR_WORKSTATION_CUST_OBJECT, "/QSYS.LIB/QCTXPDF.WSCST");
printParms.setParameter(PrintObject.ATTR_MFGTYPE, "*WSCST");
// Create a transformed input stream from the spooled file
PrintObjectTransformedInputStream is = splF.getTransformedInputStream(printParms);
I have an STM32F7508-DK and I use BSP Discovery.
The codec's called WM8994 and these are ST-MEMS type microphones.
On this board you can find 2 microphones, that I'm currently trying to use in order to do a sonometer.
I've searched throughout the example code files
We're using these 2 C functions that you can find below :
BSP_AUDIO_IN_Init(DEFAULT_AUDIO_IN_FREQ, DEFAULT_AUDIO_IN_BIT_RESOLUTION, DEFAULT_AUDIO_IN_CHANNEL_NBR);
BSP_AUDIO_IN_Record(tab, nb);
These are defined in the "stm32f508_discovery_audio.c" file, which is an example file of the things you can potentially do with the board.
You can find these files at STM github
I've already managed to receive data from the microphones, but I don't know how to treat it.
I would need some informations in order to do so :
the unit
how to convert the received data in dB's
Can you thoroughly explain what this data is ?
I'm using uint16_t and int16_t structures to store the data. Am I doing something wrong ?
I'am trying to read the new sensor tags Dogbone, (with Magnus S3 IC) but I don't have luck.
I'am using Zebra RFD8500 and programming with the Zebra SDK for Android.
I want to read the RSSI or the temperature values, but it seems the problem is with the Select command.
In either case, it is a two step procedure : 1) select command to match a specific tag pattern in a specific pointer address at the MEMORY_USER_BANK. Then the IC detect that have to store
the solicited value in a specific address at the MEMORY_RESERVED_BANK and 2) read the value, from the specific address at the MEMORY_RESERVED_BANK.
For the Select command (C1G2) I tried with Access-filters and Pre-Filters, but although the tag is matched, the IC doesn't store a value in the RESERVED Bank.
Somebody knows if Zebra APIs support the reading of this newers tags ? Or suggest me any other test?
Thanks a lot for your help
Regards.
It's possible to read the RSSI value with EPC Gen2 tags, so if the tag you're referring to supports this standard it should work.
Try downloading the Zebra RFID sample app > Perform inventory > If the tag is found it should display the RSSI. The sample app code can be found here
As for the temperature values try reading the USER memory in the sample app as well to see if you can get it.
I suggest using the SLS smartSLED; it has built-in functionality for the Magnus (Axzon) chip family (both S2 and S3).
I try to use Overpass API over europe osm data.
I want to get all European country (+ their islands).
Example, for France : Metropole + Corsica + Guadeloupe + Martinique...
To do it, I downloaded europe OSM datafile from geofabrik : https://download.geofabrik.de/europe-latest.osm.bz2 because I saw that in Europe folder I can get all what I wanted. Example : Europe/France/Corsica+Guadeloupe+Martinique... and same things for others countries.
I followed Overpass API installation : https://wiki.openstreetmap.org/wiki/Overpass_API/Installation with success.
I tried to request on different countries with success but can't get data for many islands.
Example : I can get Corsica data but CAN'T get for others French islands (Guadeloupe, Martinique...).
Request example :
[out:json]; node(around:50,16.24263,-61.535662); <; out geom;
--> this returned values using https://overpass-turbo.eu test tool, but nothing with my custom overpass API (tried on different request and different GPS loc).
Also, I checked import log files generated during import of .osm.bz2 into db/ folder, I saw many (more than hundred) lines like :
compute_geometry: Way 83225893 used in relation 10106318 not found.
--> is it related to my problem ?
Can the europe-latest.osm.bz2 be corrupted (missing data) ?
Can I import islands on my current /db to not re-download all data ?
Thank a lot !
I'm using SNAP facebook dataset for social network analysis. SNAP uses simple edge list as a data format "node1 node2" . How can I read SNAP dataset in Apache Giraph? I am reading the file with BufferedReader line per line but do not know how to save it in BSP model with adjacency lists. Can someone help me with a code example in java?
I would also like to add information about the nodes (characteristics each user/node has) how can I do that in Giraph?
You can use SNAP facebook dataset directly. In your command instead of using -vif ... use -eif org.apache.giraph.io.formats.IntNullTextEdgeInputFormat. This format reads each line as (source_vertex destination_vertex) just like SNAP dataset.