PiCam keeps losing configs

I updated to .90 and the webcam works fine when i config it through the web but as soon as i go to a different page allthe settings disapear and i have to redo them.  It never keeps the settings.

I have a feeling its a permissions issue with a file just not sure which one.  I am running the server on a Pi with rasperian.

Comments

  • Settings are stored in the printer configs in /var/lib/Repetier-Server/configs as xml file. Did you save the printer config?

    We have changed the format for xml file a bit. Should automatically upgrade to new format, but maybe you have a setting that prevents that and save does not finish due to the problem. Can you send me the xml printer config you have, so I can test if that would be a problem and especially if we have a bug in upgrade path for your settings.
  • The settings are there but when i go the webpage of the server i cannot see the webcam.

        <webcams>
            <webcam pos="0">
                <method>3</method>
                <timelapseMethod>1</timelapseMethod>
                <staticUrl>http://127.0.0.1:8090/?action=snapshot</staticUrl>;
                <dynamicUrl>http://127.0.0.1:8090/?action=stream</dynamicUrl>;
                <orientation>0</orientation>
                <reloadInterval>1</reloadInterval>
                <timelapseInterval>20</timelapseInterval>
                <timelapseHeight>0.1</timelapseHeight>
                <timelapseLayer>1</timelapseLayer>
                <timelapseBitrate>1000</timelapseBitrate>
                <timelapseSelected>0</timelapseSelected>
                <timelapseFramerate>30</timelapseFramerate>
            </webcam>
        </webcams>

  • <?xml version="1.0" encoding="UTF-8"?>
    <printer>
        <shape>
            <grid color="#454545" spacing="10"/>
           
       
       
       
       
       
       
       
       
       
       
       
       
       
        <rectangle color="#dddddd" xMax="220" xMin="0" yMax="220" yMin="0"/>
        </shape>
        <general>
            <name>Anet A8</name>
            <slug>Anet_A8</slug>
            <firmwareName>Marlin</firmwareName>
            <printerVariant>cartesian</printerVariant>
            <active>true</active>
            <fan>true</fan>
            <fan2>false</fan2>
            <tempUpdateEvery>1</tempUpdateEvery>
            <pauseHandling>0</pauseHandling>
            <pauseSeconds>120</pauseSeconds>
            <sdcard>false</sdcard>
            <softwarePower>false</softwarePower>
            <defaultVolumetric>false</defaultVolumetric>
            <logHistory>true</logHistory>
            <useOwnModelRepository>true</useOwnModelRepository>
            <useModelFromSlug/>
        <model/>
            <numFans>1</numFans>
        </general>
        <connection>
            <serial>
                <baudrate>250000</baudrate>
                <device>/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_557363138373514180E1-if00</device>
                <pingPong>false</pingPong>
                <inputBufferSize>127</inputBufferSize>
                <communicationTimeout>30</communicationTimeout>
            <rts>0</rts>
                <dtr>0</dtr>
                <malyanHack>false</malyanHack>
            </serial>
            <lcdTimeMode>4</lcdTimeMode>
            <resetScript/>
        <connectionMethod>0</connectionMethod>
            <pipe>
                <file/>
            </pipe>
            <ip>
                <port>23</port>
                <address/>
            </ip>
        </connection>
        <movement>
            <xMin>0</xMin>
            <xMax>220</xMax>
            <xHome>0</xHome>
            <yMin>0</yMin>
            <yMax>220</yMax>
            <yHome>0</yHome>
            <zMin>0</zMin>
            <zMax>240</zMax>
            <zHome>0</zHome>
            <xyJerk>20</xyJerk>
            <zJerk>0.30000000000000004</zJerk>
            <timeMultiplier>1</timeMultiplier>
            <movebuffer>16</movebuffer>
            <xySpeed max="300">100</xySpeed>
            <zSpeed max="5">2</zSpeed>
            <xyPrintAcceleration>2000</xyPrintAcceleration>
            <xyTravelAcceleration>2000</xyTravelAcceleration>
            <zPrintAcceleration>100</zPrintAcceleration>
            <zTravelAcceleration>100</zTravelAcceleration>
            <endstops all="true" x="true" y="true" z="true"/>
            <invert x="false" y="false" z="false"/>
            <G10Speed>50</G10Speed>
            <G10Distance>3</G10Distance>
            <G10LongDistance>50</G10LongDistance>
            <G11Speed>50</G11Speed>
            <G11ExtraDistance>0</G11ExtraDistance>
            <G11ExtraLongDistance>0</G11ExtraLongDistance>
            <G10ZLift>0</G10ZLift>
        </movement>
        <extruders>
            <extruder changeFastDistance="20" changeSlowDistance="20" filamentDiameter="1.75" lastTemp="220" maxTemp="260" num="0">
                <alias/>
                <maxSpeed acceleration="100" jerk="30" max="100"/>
                <extrude speed="2"/>
                <retract speed="30"/>
                <tempChange cooldownPerSecond="0.5" heatupPerSecond="2"/>
                <offsets x="0" y="0"/>
                <temperatures>
                    <temperature value="245">ABS 245</temperature>
                    <temperature value="210">PLA 210</temperature>
                    <temperature value="195">PLA 195</temperature>
                </temperatures>
            </extruder>
        </extruders>
       
       
        <quickCommands/>
       
        <properties/>
    <scripts/>
    <heatedBeds>
            <heatedBed lastTemp="0" maxTemp="120" num="0">
                <alias/>
                <tempChange cooldownPerSecond="0.5" heatupPerSecond="1.5"/>
                <temperatures>
                    <temperature value="115">ABS</temperature>
                    <temperature value="50">PLA</temperature>
                </temperatures>
            </heatedBed>
        </heatedBeds>
        <heatedChambers/>
        <webcams>
            <webcam pos="0">
                <method>3</method>
                <timelapseMethod>1</timelapseMethod>
                <staticUrl>http://127.0.0.1:8090/?action=snapshot</staticUrl>;
                <dynamicUrl>http://127.0.0.1:8090/?action=stream</dynamicUrl>;
                <orientation>0</orientation>
                <reloadInterval>1</reloadInterval>
                <timelapseInterval>20</timelapseInterval>
                <timelapseHeight>0.1</timelapseHeight>
                <timelapseLayer>1</timelapseLayer>
                <timelapseBitrate>1000</timelapseBitrate>
                <timelapseSelected>0</timelapseSelected>
                <timelapseFramerate>30</timelapseFramerate>
            </webcam>
        </webcams>
    </printer>


  • That looks already converted successfull. So what do you mean with switching page loosing settings? If you go to printer settings you do not see the 2 urls to your pi cam? Or when exactly do you loose the webcams.

    Also please open javascript console to see if errors happen. Just right click and select inspect element then switch to console.
  • Ill add in the settings and then after a min or two itll look like this again and ill have to add the settings again.  I just did a chmod 777 on that config file and im waiting to see if that fixes it

  • Have just uploaded your config and I see the webcam. If I'm at that page and enter

    rs.activeConfig

    in javascript console I get:

    {connection: {…}, extruders: Array(1), general: {…}, heatedBeds: Array(1), heatedChambers: Array(0), …}connection: {connectionMethod: 0, ip: {…}, lcdTimeMode: 4, pipe: {…}, resetScript: "", …}extruders: [{…}]general: {active: true, defaultVolumetric: false, eepromType: "marlin", firmwareName: "Marlin", heatedBed: true, …}heatedBeds: [{…}]heatedChambers: []movement: {G10Distance: 3, G10LongDistance: 50, G10Speed: 50, G10ZLift: 0, G11ExtraDistance: 0, …}properties: {}quickCommands: []shape: {basicShape: {…}, gridColor: "#454545", gridSpacing: 10, marker: Array(0)}webcams: Array(1)0: $$hashKey: "object:65"dynamicUrl: "http://127.0.0.1:8090/?action=stream"method: 3orientation: 0pos: 0reloadInterval: 1staticUrl: "http://127.0.0.1:8090/?action=snapshot"timelapseBitrate: 1000timelapseFramerate: 30timelapseHeight: 0.1timelapseInterval: 20timelapseLayer: 1timelapseMethod: 1timelapseSelected: 0__proto__: Objectlength: 1__proto__: Array(0)__proto__: Object

    You see it lists the webcam as supposed. What do you get if you enter this in javascript console? Not sure wher eit goes wrong but config at least is ok.
  • After chmod 777 that xml file all is good. I don't think it had execute permissions for some reason.
Sign In or Register to comment.