9/08/2013

Something About MIUI Daily Motto

We will talk something about MIUI daily motto here.

What's MIUI daily motto?


MIUI daily motto is representative remarks from MIUI forum members everyday. When browsing MIUI forum, you will see the so-called MIUI daily motto as follows.(Of course, you can submit your own excellent remarks to the forum.)



How can we get the content separately?


I have strip the MIUI daily motto and built it into RSS feed URL. You can get it here. Here is the motto individual.


Custom info display on lock screen based on MIUI daily motto.

Grab the MIUI daily motto individual and save in database everyday at specific time, then show it on lock screen randomly. Here we go!

Step 1:  

Profile:(daily motto - update and save)

Context: Time [From 12:00 till 12:01]

Task: 1. "Mobile Data"[set on];
      2. "Wait"[1 second];
      3. "HTTP Get"[Server port: feed43.com/miuidailymotto.xml
                    Mime type: text/*](continue Task after error)

      4. "Variable Set"[%motto to %HTTPD];
      5. "If"{%HTTPR != -1}
             "Variable Split"[Name: %motto ;Splitter: <pubDate>]
             "Variable Split"[Name: %motto2 ;Splitter: </pubDate>]
             "Variable Set"[Name: %pubdate ;to: %motto21]
             "Variable Split"[Name: %motto22 ;Splitter: </title>]
             "Variable Split"[Name: %motto221 ;Splitter: <title>]
             "Variable Set"[Name: %Motto ;to: %motto2212]
             "Run Shell"[configure as follows]


           "End if"
      6. "Mobile Data"[set off]

Take a glance at motto.db.



Step 2:

Pull out MIUI daily motto randomly with sqlite3 from motto.db.

"Run Shell"(configure as follows)

As for other steps, you can refer my related notes.("Show Lock Info on Lock Screen")

Notice: the global variable "%MNT_SD" refers to SD card mounted path.

Now let's straighten out ideas with flowchart below.


2 comments: