-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in 0.0.6: All preset combo boxes are blank #5
Comments
Wich combo? |
All combos. |
Please clear the cache of your browser and try again. |
I did that on google chrome and it has made no difference. I tried it on another laptop (in chrome and firefox) but still the combos are blank. |
Please check the console of the browser for errors. |
The above link gives
The raw json gives
I dont know where the NULL line is coming from. It is not in the ptz_presets.conf in the backup configuration file. |
Did you edit the file from a Windows machine? |
Yes I edited it on a windows pc (in 7-zip builtin editor). I will reset to defaults and start again. Also, it seems that the camera reboots when I am playing around with the presets in the PTZ page. Could it be related to windows vs linux CR LF? |
Yes it's possible. |
I reset to defaults and started again. I am trying to create a starting preset at slot 0; I called it "startup". To name and save it, I did the following:
Now going to the json link gives ""startup|1649|-61" in the first line. I rebooted the camera but the camera stayed in the default position. I tried to manually move to preset 0, but the camera stayed in the default position. I am stumped here. Btw, can you add an uptime somewhere in the page. This would be really helpful in knowing if the camera is rebooting randomly. Thanks |
Did you save configuration after step 5? A strange thing: you have a negative y coordinate. Uptime is in the status page, click the sonoff hack image on the upper left corner. |
Sorry for the late reply; I had some family related engagements. I did save the configuration after choosing the starting preset. I don't know about the y coordinate value as I just used the arrow keys to set the camera and then save the preset. My starting preset is 5 "arrow down" and 1 "arrow right" from the default bootup position. So if I have to set the x/y values myself in the configuration backup archive, what values should I use? |
No, you don't have to set manually the coordinates. Simply it's strange that the cam detects a negative coordinate. |
After the check yesterday, I went to the PTZ page again and tried to save the configuration again in the "Goto preset on boot" part. I got the message that it is saving and then it got stuck on it. I checked back after a few minutes and saw that the camera had rebooted (uptime was 4 mins) and had gone back to the default position even though the above option is set for my custom preset; the json values are "0":"startup|1649|-61",....". |
I don't understand. |
I believe that I formatted the sdcard in Ubuntu+gparted and then copied your firmware to the card under Windows. I had earlier formatted the card in the ewelink app and it had created an exfat partition which I could not delete in windows. So I had to use Ubuntu+gparted. I will do this again and this time copy it from Ubuntu also. |
Try to format the sd card with a fat32 filesystem. |
Another problem. I have a 64 GB sdcard and disk management does not allow me to create a fat32 partition on the sd card; the only options are exfat and ntfs. Apparently, fat32 partitions larger than 32 GB are not supported in windows. If I can't use the entire 64 GB with fat32, I might as well get a 32 GB card. |
I created a 32 GB fat32 partition on the sdcard on windows and extracted the firmware to it using 7zip. But saving the starting preset rebooted the camera. This camera will just not play nicely with the preset commands on the PTZ page. |
Please try to run the command with ssh: |
Running this command gives strange results for the current position. When the camera boots, the command output is:
After I press 4 "arrow downs" and 1 "right arrow", I get the following:
The strange part is if I now do 1 "arrow down", I start getting negative y coordinates:
One more "arrow down" gives:
And so on. Mind you, the camera is not moving down any further but the y coordinate keeps going in the negative direction. |
Ok, I understand. |
I manually edited ptz_presets.conf in the configuration backup to change the xy coordinates to 1650,49 (for preset 0) and then restored the configuration. Now the camera behaved as expected on bootup and the combo boxes in the PTZ page are displaying values ok. The camera uptime is now about 11 hrs which is the longest that I remember. |
I confirm that, when the camera reaches the lower boundary, the variable that contains the coordinates continues to decrease (even if the camera is stopped). |
I have recently upgraded to version 0.0.6 and all the preset combo boxes in the PTZ page are blank.
The text was updated successfully, but these errors were encountered: