Author Topic: SQL, templates, contributing, beginners info  (Read 3392 times)

Armor Gnome

  • Guru
  • ****
  • Posts: 309
    • View Profile
SQL, templates, contributing, beginners info
« on: July 19, 2012, 07:27:31 pm »
I apologize if some of this is repeated constantly but I have been searching and cant find any information between: I-just-need-it-to-work user and developer.  I would consider these middle ground how-to instructions for someone who is willing to contribute and needs some direction.

Templates:

Is there a way to copy a template when creating a new device without altering the original?  I often times need to adjust a few properties only (such as advanced IP camera) when setting up a non-recognized or improperly recognized device.  Currently I am pen-and-paper writing down all the command groups etc.  Though I am learning a lot about "how" these things work in doing it this way it is killing my productivity.

Sharing Templates, Device Data, etc. via sqlCVS?:

So I created a new device for my D-Link 930L (wired or wireless IP cam).  I could use generic, advanced or tweak the existing D-Link cameras but I like things to be clean so I wanted my duck to be called a duck.  In development, is the LMCE direction to catalog and create device data for each piece or to come up with fewer generic device schemes that cover groups of equipment?

In my sqlCVS area of the web-admin page I see where I can pull in using the no-pass account which is pre-populated.  How do I go about uploading anything I create for review and possible inclusion?

Designer:

It's very clear that as the UI goes that the old program is no longer used and effort is going into new schemes and methods.  What I am hunting for information on though is screen and object relationships.  When setting up a new device such as a camera and I am asked the PK_Object or PK_Screen # and have to tab out to find another device that uses it and hope I am correct.  I tried going into /usr/pluto/orbiter but the file names do not contain such numbers.  Is there a list of screens with numbers I am overlooking? 

Bug Reporting:

I think something is a bug, I reload several times, I search wiki/forums/google and try to get it going on my own.  I could have screwed something up or it could be buggy.  Nobody else seems to be complaining about it on wiki/forums/google.  Would LMCE prefer rejecting tickets as user screw-up or not getting a ticket at all?

- Just a few questions I wanted to get posted before I tackle getting one IP cam, one A/V input and two streaming feeds into the Quad-Cam view.
I made a wiki!  Click here to check out my system.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: SQL, templates, contributing, beginners info
« Reply #1 on: July 20, 2012, 06:09:22 am »
Hi!

I understand that because this system is so complex, it is hard to know where to start. Let me see if I can untangle some of this for you.

Templates: No there unfortunately isn't a way to easily duplicate a template. It needs to be made from scratch. We aren't averse to somebody writing a duplicate function in the web admin, however, this would be very useful, it's just nobody has done it yet.

Device Templates are typically tilted towards specific devices and models. Sometimes, one device template can handle many different devices, sometimes it is a single device to a template. This is of the contributor's discretion, in the end the user just cares that it works, and therefore that's our stance too. The system is very flexible as to where it comes to describing a device, so if a multiple devices can work with the same commands and command groups, it makes sense to combine them into one device template. We have the ability to have multiple plug and play records for this purpose (among others.)

Uploading: Device templates can be uploaded with the anonymous/nopass credentials. They are then put into an area where we can view them and subsequently approve their inclusion into the database. In order for this to work effectively, what we ask each contributor to do is:

(1) sqlCVS update your database before making your new template
(2) make your new template
(3) Go to trac (http://svn.linuxmce.org/) and create a new ticket, with the title being your new device, and an indication that this is a new device template. This will give you a TRAC ticket #. you will need it for the next step.
(4) Go to sqlCVS->Diff in the web admin, and be sure to check all for the DCE and IR command groups, as this is where your device template will be stored (the metadata is in DCE, and any special commands, IR codes, Ruby code, will be in the IR repository), IN THE COMMENTS FIELD, PLEASE PUT THE TRAC TICKET # YOU WERE GIVEN. This will allow us to easily process your template and match things up.
(5) We will look things over, and most likely approve. If we don't, either way...
(6) You get a message indicating it was approved or not, and what device template # it was inserted into the database as. If you do an sqlCVS, you will see the revised device template #.

As for Designer: Designer is still used, because we haven't replaced Orbiter yet. While we ARE working on a new engine, and it is available for those who want to contribute and test, Orbiter is still used in most cases, therefore Designer is still relevant. For most things, you should not need to go out and design a new screen, but if you do need to make UI changes, we can walk you through them in the -devel IRC channel.

and finally, all bug reports are useful, don't be hesitant to file one. If it's a dupe, we will mark it as such. If it's a worksforme, we will try to offer an explanation or ask for further information.

Hope this helps,
-Thom

Armor Gnome

  • Guru
  • ****
  • Posts: 309
    • View Profile
Re: SQL, templates, contributing, beginners info
« Reply #2 on: July 23, 2012, 11:58:00 pm »
Still stuck on the PK_Screen list  :(

Does anybody have or have the ability to generate such a thing?  I mainly need the number for single cam view,  I am looking at it now on 4 different orbiters but I cant gather the # that way to set up a response to event that uses it.
I made a wiki!  Click here to check out my system.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: SQL, templates, contributing, beginners info
« Reply #3 on: July 24, 2012, 12:40:27 am »
Code: [Select]
linuxmce@dcerouter:~$ mysql pluto_main -uroot
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 71918
Server version: 5.1.62-0ubuntu0.10.04.1 (Ubuntu)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SELECT PK_Screen, Description FROM Screen;
+-----------+------------------------------------------+
| PK_Screen | Description                              |
+-----------+------------------------------------------+
|         1 | Main                                     |
|         2 | Lights                                   |
|         3 | Media                                    |
|         4 | Climate                                  |
|         5 | Security                                 |
|         6 | Telephony                                |
|         7 | Misc                                     |
|         8 | UserStatus                               |
|         9 | MakeCallPhonebook                        |
|        10 | MakeCallFavorites                        |
|        11 | MakeCallDialNumber                       |
|        12 | MakeCallPlutoUser                        |
|        13 | SecurityPanel                            |
|        14 | SecurityStatusReport                     |
|        15 | SingleCameraViewOnly                     |
|        16 | Intercom                                 |
|        17 | QuadViewCameras                          |
|        18 | VideoCallInProgress                      |
|        19 | FileSave                                 |
|        20 | ManagePlaylist                           |
|        21 | MakeCallDevice                           |
|        22 | MakeCallPhonebook2                       |
|        23 | MakeCallIntercom                         |
|        24 | CurrentUser                              |
|        25 | CDTrackCopy                              |
|        26 | CDRemote                                 |
|        27 | VoicemailMain                            |
|        28 | TransferAllUsers                         |
|        29 | Sleeping                                 |
|        30 | ControllerStatus                         |
|        31 | OtherFolders                             |
|        32 | ConfirmDelete                            |
|        33 | WebURL                                   |
|        34 | Browser                                  |
|        35 | ModeChanged                              |
|        36 | SensorsNotReady                          |
|        37 | RecordedTVShows                          |
|        38 | DeviceControl                            |
|        39 | Computing                                |
|        40 | OpenFile                                 |
|        41 | BrowserConsole                           |
|        42 | FavoritesPDA                             |
|        43 | PCFileTools                              |
|        44 | AdvancedOptions                          |
|        45 | MakingCall                               |
|        46 | MakingLinPhoneBroadcast                  |
|        47 | FileList_Music_Movies_Video              |
|        48 | PVR Remote                               |
|        49 | DVD Remote                               |
|        50 | DVDMenu                                  |
|        51 | MapMedia                                 |
|        52 | AdvancedMediaOptions                     |
|        53 | PopupMessage                             |
|        54 | MusicRemote                              |
|        55 | LinPhones                                |
|        56 | Orbiters                                 |
|        57 | Phones                                   |
|        58 | DVDOptions                               |
|        59 | AnswertoLinPhones                        |
|        60 | UserPinCode                              |
|        61 | PreviewOptions                           |
|        62 | TransferOutside                          |
|        63 | SatelliteCableBox                        |
|        64 | CurrentLocation                          |
|        65 | MediaAttributeSearchInput                |
|        66 | MediaAttributeSearchResult               |
|        67 | NewPhoneDetected                         |
|        68 | FirstTime                                |
|        69 | FileList_PlayLists                       |
|        70 | VideosRemote                             |
|        71 | FileList_Pictures_Docs                   |
|        72 | GenericTwoButtonQuestion                 |
|        73 | TryCodes                                 |
|        74 | ScreenSaver                              |
|        75 | Pick Room For Device                     |
|        76 | Power                                    |
|        77 | Generic DVD Remote                       |
|        78 | ViewPlaylist                             |
|        79 | FileList_withPictures_Mobil              |
|        80 | GenericDvdMenu                           |
|        81 | ViewAttributes                           |
|        82 | PendingTasks                             |
|        83 | AddAttribute                             |
|        84 | RadioRemote                              |
|        85 | GenericCDRemote                          |
|        86 | FileList - Popup_Container               |
|        87 | CreateViewBookmarks                      |
|        88 | BrowseBookmarks                          |
|        89 | GenericAppController                     |
|        90 | BookmarksByMediaType                     |
|        92 | MythTvRemote                             |
|        93 | Myth_all commands                        |
|        94 | Mytv_watching tv                         |
|        95 | Myth_live tv browse mode                 |
|        96 | Myth_playback recording                  |
|        97 | GenericKeyboard                          |
|        98 | PingPong                                 |
|        99 | TVEPG1                                   |
|       100 | TVEPG2                                   |
|       101 | TVEPG3                                   |
|       102 | ShowInfo                                 |
|       103 | CreateViewBookmarksTV                    |
|       105 | WebSites                                 |
|       106 | WhatModelMobileOrbiter                   |
|       107 | Filelist                                 |
|       108 | DVDmenu                                  |
|       109 | Attributes                               |
|       110 | DVDoptions                               |
|       111 | AdvRemote                                |
|       112 | Playlist                                 |
|       113 | AudioOptions                             |
|       114 | Subtitles                                |
|       115 | Angles                                   |
|       116 | NewPnpDevice                             |
|       117 | VDR Remote                               |
|       118 | CdRemote                                 |
|       119 | PowerFile                                |
|       120 | DevCallInProgress                        |
|       121 | DevIncomingCall                          |
|       122 | DevMoveCallsInProgress                   |
|       123 | MapSecurity                              |
|       124 | MapLighting                              |
|       125 | MapClimate                               |
|       126 | MapTelecom                               |
|       127 | NavMode                                  |
|       128 | PVR Full Screen                          |
|       129 | Epg                                      |
|       130 | Help01                                   |
|       131 | Help02                                   |
|       132 | Help03                                   |
|       133 | SetupMythTv01                            |
|       134 | SetupMythTv02                            |
|       135 | SetupMythTv03                            |
|       136 | SetupMythTv04                            |
|       137 | PVR Full Screen Options                  |
|       138 | DVDFullScreen                            |
|       139 | DVDFullScreenOpt                         |
|       140 | VideosFullScreen                         |
|       141 | VideosFullScreenOpt                      |
|       142 | GenericAppFullScreen                     |
|       143 | DVDMenuFullScreen                        |
|       144 | DVDMenuFullScreenOpt                     |
|       145 | VlcFullScreen                            |
|       146 | VlcFullScreenOpt                         |
|       147 | popLights                                |
|       148 | popMedia                                 |
|       149 | popClimate                               |
|       150 | popTelecom                               |
|       151 | popSecurity                              |
|       152 | popOthers                                |
|       153 | Game Atari 5200                          |
|       154 | Game Atari 5200 Monitor Mode             |
|       155 | Game Atari 5200 FS                       |
|       156 | Game Atari 5200 FS Options               |
|       157 | Game SG1000 SMS NES Famicom              |
|       158 | Game SG1000 SMS NES Famicom Monitor Mode |
|       159 | Game SG1000 SMS NES Famicom FS           |
|       160 | Game SG1000 SMS NES Famicom FS Options   |
|       161 | Game Menu Onscreen NonOSD                |
|       162 | Hulu Remote                              |
|       163 | Hulu OSD                                 |
|       164 | Hulu OSD Options                         |
|       165 | Get Capture Card Audio Port              |
|       166 | Apple 2 Remote                           |
|       167 | Apple 2 FS                               |
|       168 | Commodore Remote                         |
|       169 | AtariKeyboard                            |
|       170 | PS3                                      |
|       171 | AudiTelecom                              |
|       172 | AudiFullScreen                           |
|       173 | AudiVideoRemote                          |
|       174 | CleanScreen                              |
|       175 | VideoWizard                              |
|       176 | DialogCannotPlayMedia                    |
|       178 | DialogRippingInProgress                  |
|       179 | DialogCheckingDrive                      |
|       180 | DialogUnableToSavePlaylist               |
|       181 | DialogPlaylistSaved                      |
|       182 | DialogUnableToLoadPlaylist               |
|       183 | DialogRippingError                       |
|       184 | DialogRippingInstructions                |
|       185 | DialogGenericError                       |
|       186 | DialogCannotBookmark                     |
|       187 | DialogAskToResume                        |
|       188 | DialogGC100Error                         |
|       189 | DialogPhoneInstructions                  |
|       190 | DialogSendFileToPhoneFailed              |
|       191 | AudiHome                                 |
|       192 | RoomsWizard                              |
|       193 | UsersWizard                              |
|       194 | CountryWizard                            |
|       196 | TV Manufacturer                          |
|       197 | Receiver                                 |
|       198 | LightsSetup                              |
|       199 | AlarmPanel                               |
|       200 | VOIP Provider                            |
|       201 | AV Devices                               |
|       202 | NAS Options                              |
|       204 | Need Reload Router                       |
|       205 | Need Regen Orbiter                       |
|       206 | Sensors Viewed By Camera                 |
|       207 | PVR OSD                                  |
|       208 | PVR Recordings                           |
|       209 | Demo Media                               |
|       210 | Download are ready to install            |
|       212 | mnuAmbiance                              |
|       216 | TVConfirmInputsToggle                    |
|       218 | PVR OSD Full Screen                      |
|       219 | PVR Recordings Full Screen               |
|       220 | CurrentlyActiveRemote                    |
|       222 | mnuLights                                |
|       223 | mnuPlaybackControl                       |
|       224 | mnuSpeedControl                          |
|       225 | mnuVolume                                |
|       230 | Media Tracks                             |
|       231 | Which Wizard                             |
|       232 | This Room                                |
|       234 | NAS Options when Mounting device         |
|       235 | New Pnp Device One Possibility           |
|       236 | Wizard Done                              |
|       237 | House Setup Popup Message                |
|       238 | Media Player Setup Popup Message         |
|       239 | Add Software                             |
|       240 | Choose Folder                            |
|       241 | Choose Drive                             |
|       242 | TV Channels                              |
|       243 | CD Full Screen OSD                       |
|       244 | Music Full Screen OSD                    |
|       245 | Choose Provider for Device               |
|       246 | Get Username Password For Devices        |
|       247 | Get Capture Card Port                    |
|       248 | Floorplan                                |
|       249 | Halt System                              |
|       250 | PVR Software                             |
|       251 | Final House Setup                        |
|       252 | ExternalDeviceFullScreen                 |
|       253 | ExternalDeviceFullScreen_Opts            |
|       255 | Remote Assistance                        |
|       256 | Legacy A/V Speed Control                 |
|       257 | Thumbnail                                |
|       258 | Scanning Progress                        |
|       259 | Manage Drives                            |
|       260 | Jukebox Manager                          |
|       261 | NAS Manager                              |
|       262 | Auto-Configure TV                        |
|       263 | AdjustScreenSettings                     |
|       264 | PNP Generic Options                      |
|       265 | Zoom & Aspect                            |
|       266 | Legacy PVR Cable Box                     |
|       267 | Active Calls                             |
|       268 | Call Dropped                             |
|       269 | Assisted Transfer In Progress            |
|       270 | Static IP settings                       |
|       271 | Network Settings                         |
|       272 | PVR Recordings Full Screen Options       |
|       273 | VDR Recordings Full Screen Options       |
|       274 | VDR OSD                                  |
|       275 | VDR Recordings Full Screen               |
|       276 | VDR OSD Full Screen                      |
|       277 | VDR Full Screen Options                  |
|       278 | VDR Full Screen                          |
|       279 | VDR Recordings                           |
|       280 | Simple TV Remote                         |
|       281 | Non Pluto TV Full screen                 |
|       282 | Non Pluto TV Full screen options         |
|       283 | Cannot Reload Router                     |
|       284 | Game                                     |
|       285 | Rip Options                              |
|       286 | Rip format options                       |
|       287 | Privacy options for rip                  |
|       288 | Game Screen FS                           |
|       289 | Game Screen FS Options                   |
|       290 | Current Disc Contents                    |
|       291 | Edit Attributes                          |
|       292 | Game Monitor Mode                        |
|       293 | Game Atari 2600 Monitor Mode             |
|       294 | Game Atari 2600 FS Options               |
|       295 | Game Atari 2600                          |
|       296 | Game Atari 2600 FS                       |
|       297 | Game Atari 2600 Controller Options       |
|       298 | Generic Blu-Ray Remote                   |
|       299 | NonPluto BluRay FS                       |
|       300 | NonPluto BluRay FS Options               |
|       301 | Tivo Series 3 Remote                     |
|       302 | Tivo Series 2 Remote                     |
+-----------+------------------------------------------+
285 rows in set (0.01 sec)