This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Server for live experiment
#4
Thank you for your answers. 


Could it be possible for you to share the .php file you ran on your server for this live experiment ?
By studiying it, it could help me a lot to understand how to create my own project. Thank you !

I succed to create a "hello world" .php page on the server of my laptop. I can see this page on my smartphone as well.

So i tried to create an experiment for phyphox. The smartphone measure tha accelerometer value and average it every seconds.
I would like to send this value every second to my laptop but it did'nt work. (This just in order to test. I don't really need it for any project.)

The phyphox file is :

<phyphox xmlns="http://phyphox.org/xml" xmlns:editor="http://phyphox.org/editor/xml" version="1.7" editor:version="1.0" locale="en">
    <title>live test</title>
    <category>no category</category>
    <description></description>
    <data-containers>
        <container size="1000" static="false">abs</container>
    </data-containers>
    <network>
    <connection address="https://192.168.1.41:6023/blog/live.php" autoConnect="true" service="http/post" mode="trigger" id="submit" conversion="json" interval="10">
      <send id="abs" type="buffer">abs</send>    </connection>
  </network>
    <input>
        <sensor editor:uuid="97" editor:posx="250.66665649414062" editor:posy="241.30556106567383" rate="1" average="true" type="accelerometer">
            <output component="abs">abs</output>
        </sensor>
    </input>
    <output>
    </output>
    <analysis sleep="0"  onUserInput="false">
    </analysis>
    <views>
        <view label="value">
            <value editor:uuid="104" editor:posx="800.5694580078125" editor:posy="248.63887405395508" label="value" size="1" precision="2" scientific="false"  factor="1" >
                <input>abs</input>
            </value>
        </view>
    </views>
    <export>
    </export>
</phyphox>


The file on my serveur is :

<?php
echo $_GET["abs"]
?>


And i get this error :

Notice: Undefined index: abs in C:\ENTBOX\htdocs\blog\live.php on line 2
Reply


Messages In This Thread
Server for live experiment - by julien - 05-01-2020, 09:43 AM
RE: Server for live experiment - by julien - 05-02-2020, 02:25 PM
RE: Server for live experiment - by julien - 05-03-2020, 11:43 AM
RE: Server for live experiment - by julien - 05-03-2020, 04:27 PM
RE: Server for live experiment - by julien - 05-04-2020, 09:47 AM
RE: Server for live experiment - by julien - 05-05-2020, 09:44 AM
RE: Server for live experiment - by julien - 05-05-2020, 12:10 PM
RE: Server for live experiment - by julien - 05-07-2020, 07:49 PM
RE: Server for live experiment - by julien - 05-08-2020, 01:07 PM
RE: Server for live experiment - by julien - 05-11-2020, 04:44 PM
RE: Server for live experiment - by julien - 05-12-2020, 09:23 AM

Forum Jump: